// pages/me/alter-shop/alter-shop.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    fullName:'',
    shortForm:'',
    address:'',
    phone:''
  },
  formSubmit: function (e) {
    console.log('form发生了submit事件，携带数据为：', e.detail.value);

    let {
      fullName,
      shortForm,
      address,
      phone
    } = e.detail.value;
    console.log(fullName);
    wx.request({
      url: '',
      header: {
        "Content-Type": " "
      },
      method: "POST",
      data: {
        fullName: e.detail.value.fullName,
        shortForm: e.detail.value.shortForm,
        address: e.detail.value.address,
        phone: e.detail.value.phone,
      },
      success: function (res) {
        wx.showModal({
          title: "提示",

          content: '添加成功!',
          showCancel: false,
        })
      }
    })

  },
})